package com.example.demo.response;


public enum ResultEnum {

    SUCCESS(200,"接口调用成功"),

    SAFETY_CERTIFICATION_FAIL(401,"安全认证失败"),


    AUTHORITY_FAIL(403,"没有接口访问权限"),

    REQUEST_TIMEOUNT(406,"请求接口时间误差超长，系统允许误差为5min"),

    ERROR(500,"接口调用失败"),


    PARAMETER_ERROR(422,"参数异常")
    ;

    private Integer code;

    private String msg;

    private ResultEnum(Integer code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}